package com.woniuxy.cloud.carl.carlstation.client;

import com.woniuxy.cloud.carl.carlstation.client.dto.NoticeDto;
import com.woniuxy.cloud.carl.carlstation.client.param.AddNoticeParam;
import com.woniuxy.cloud.carl.carlstation.client.param.DelNoticeParam;
import com.woniuxy.cloud.carl.carlstation.client.param.GetNoticeParam;
import com.woniuxy.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient(contextId = "noticeClient",name = "carlstation")
public interface NoticeClient {
    @PostMapping("/addNotice")
    Result addNotice(@RequestBody AddNoticeParam param);
    @DeleteMapping("/delNotice")
    Result delNotice(@SpringQueryMap DelNoticeParam param);
    @GetMapping("/getNotice")
    Result<List<NoticeDto>> getNotice(@SpringQueryMap GetNoticeParam param);
}
